package cn.myzqu.sign.project.server.service;


import cn.myzqu.sign.project.common.vo.ProjectInfoVo;
import cn.myzqu.sign.project.server.base.exception.CustomException;
import cn.myzqu.sign.project.server.entity.ProjectInfo;
import cn.myzqu.sign.project.common.input.ProjectStaffQueryInput;
import cn.myzqu.sign.project.common.input.ProjectQueryInput;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @Author: 的川
 * @Date: 2019/4/11 22:36
 */
public interface ProjectService {
    @Transactional(rollbackFor = CustomException.class)
    Boolean add(ProjectInfo projectInfo);

    ProjectInfo getProjectInfoById(Long id);

    List<Map> searchProject(ProjectQueryInput projectQueryInput);

    List<Map> getProjectByStaff(Map params);

    /**
     * 搜索我的项目
     * @param projectStaffQueryInput
     * @return
     */
    List<ProjectInfoVo> searchMyProject(ProjectStaffQueryInput projectStaffQueryInput);
}
